﻿using MediatR;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.DeviceManage.Project
{
    /// <summary>
    /// 创建项目维护命令
    /// </summary>
    public class CreateProjectMaintenanceCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 项目编号
        /// </summary>
        public string? ProjectCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string? ProjectName { get; set; }

        /// <summary>
        /// 检验方式
        /// </summary>
        public string? InspectionMethod { get; set; }

        /// <summary>
        /// 值类型
        /// </summary>
        public string? ValueType { get; set; }

        /// <summary>
        /// 数值判断基准
        /// </summary>
        public string? NumericCriteria { get; set; }

        /// <summary>
        /// 布尔判断基准
        /// </summary>
        public bool? BooleanCriteria { get; set; }

        /// <summary>
        /// 文本判断基准
        /// </summary>
        public string? TextCriteria { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = true;

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
